class TujianPrase{
    public constructor() {
	}
    private static _instance:TujianPrase;

    public static instance():TujianPrase{
		if(!TujianPrase._instance){
			TujianPrase._instance = new TujianPrase();
		}
		return TujianPrase._instance;
	}

    //获取图鉴信息
    public getTujianInfo(call?:Function,scope?){
        UIManager.instance().showNormalLoading();
        let openid = RoleCache.instance().openid ? RoleCache.instance().openid : '' ;
        let data = {
            openid : openid,
        }
        HttpManager.instance().sendPost(GameConst.httpUrl + 'options/get_collection' ,StringUtil.jsonToHttpPostString(data), (e)=>{
            UIManager.instance().hideNormalLoading();
            let data = JSON.parse(e);
            if(call)
            {
                call.call(scope, data.data);
            }
        })

    }
}